import request from '@/utils/request'

// 查询课程购买记录列表
export function listUserCoursePurchases(query) {
  return request({
    url: '/education/UserCoursePurchases/list',
    method: 'get',
    params: query
  })
}

// 查询课程购买记录详细
export function getUserCoursePurchases(id) {
  return request({
    url: '/education/UserCoursePurchases/' + id,
    method: 'get'
  })
}

// 新增课程购买记录
export function addUserCoursePurchases(data) {
  return request({
    url: '/education/UserCoursePurchases',
    method: 'post',
    data: data
  })
}

// 修改课程购买记录
export function updateUserCoursePurchases(data) {
  return request({
    url: '/education/UserCoursePurchases',
    method: 'put',
    data: data
  })
}

// 删除课程购买记录
export function delUserCoursePurchases(id) {
  return request({
    url: '/education/UserCoursePurchases/' + id,
    method: 'delete'
  })
}
